package com.zhongwang.business.gen.entity;

import java.util.ArrayList;
import java.util.List;

public class QuoteApproveDefineExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QuoteApproveDefineExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andQuoteAppDefIdIsNull() {
            addCriterion("quote_app_def_id is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdIsNotNull() {
            addCriterion("quote_app_def_id is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdEqualTo(Integer value) {
            addCriterion("quote_app_def_id =", value, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdNotEqualTo(Integer value) {
            addCriterion("quote_app_def_id <>", value, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdGreaterThan(Integer value) {
            addCriterion("quote_app_def_id >", value, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_app_def_id >=", value, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdLessThan(Integer value) {
            addCriterion("quote_app_def_id <", value, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdLessThanOrEqualTo(Integer value) {
            addCriterion("quote_app_def_id <=", value, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdIn(List<Integer> values) {
            addCriterion("quote_app_def_id in", values, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdNotIn(List<Integer> values) {
            addCriterion("quote_app_def_id not in", values, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_def_id between", value1, value2, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDefIdNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_def_id not between", value1, value2, "quoteAppDefId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIsNull() {
            addCriterion("quote_id is null");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIsNotNull() {
            addCriterion("quote_id is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteIdEqualTo(Integer value) {
            addCriterion("quote_id =", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotEqualTo(Integer value) {
            addCriterion("quote_id <>", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdGreaterThan(Integer value) {
            addCriterion("quote_id >", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_id >=", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdLessThan(Integer value) {
            addCriterion("quote_id <", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdLessThanOrEqualTo(Integer value) {
            addCriterion("quote_id <=", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIn(List<Integer> values) {
            addCriterion("quote_id in", values, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotIn(List<Integer> values) {
            addCriterion("quote_id not in", values, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdBetween(Integer value1, Integer value2) {
            addCriterion("quote_id between", value1, value2, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_id not between", value1, value2, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessIsNull() {
            addCriterion("quote_app_process is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessIsNotNull() {
            addCriterion("quote_app_process is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessEqualTo(Integer value) {
            addCriterion("quote_app_process =", value, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessNotEqualTo(Integer value) {
            addCriterion("quote_app_process <>", value, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessGreaterThan(Integer value) {
            addCriterion("quote_app_process >", value, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_app_process >=", value, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessLessThan(Integer value) {
            addCriterion("quote_app_process <", value, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessLessThanOrEqualTo(Integer value) {
            addCriterion("quote_app_process <=", value, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessIn(List<Integer> values) {
            addCriterion("quote_app_process in", values, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessNotIn(List<Integer> values) {
            addCriterion("quote_app_process not in", values, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_process between", value1, value2, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppProcessNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_process not between", value1, value2, "quoteAppProcess");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderIsNull() {
            addCriterion("quote_app_order is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderIsNotNull() {
            addCriterion("quote_app_order is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderEqualTo(String value) {
            addCriterion("quote_app_order =", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotEqualTo(String value) {
            addCriterion("quote_app_order <>", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderGreaterThan(String value) {
            addCriterion("quote_app_order >", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderGreaterThanOrEqualTo(String value) {
            addCriterion("quote_app_order >=", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderLessThan(String value) {
            addCriterion("quote_app_order <", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderLessThanOrEqualTo(String value) {
            addCriterion("quote_app_order <=", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderLike(String value) {
            addCriterion("quote_app_order like", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotLike(String value) {
            addCriterion("quote_app_order not like", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderIn(List<String> values) {
            addCriterion("quote_app_order in", values, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotIn(List<String> values) {
            addCriterion("quote_app_order not in", values, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderBetween(String value1, String value2) {
            addCriterion("quote_app_order between", value1, value2, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotBetween(String value1, String value2) {
            addCriterion("quote_app_order not between", value1, value2, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusIsNull() {
            addCriterion("quote_app_ava_status is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusIsNotNull() {
            addCriterion("quote_app_ava_status is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusEqualTo(Integer value) {
            addCriterion("quote_app_ava_status =", value, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusNotEqualTo(Integer value) {
            addCriterion("quote_app_ava_status <>", value, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusGreaterThan(Integer value) {
            addCriterion("quote_app_ava_status >", value, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_app_ava_status >=", value, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusLessThan(Integer value) {
            addCriterion("quote_app_ava_status <", value, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusLessThanOrEqualTo(Integer value) {
            addCriterion("quote_app_ava_status <=", value, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusIn(List<Integer> values) {
            addCriterion("quote_app_ava_status in", values, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusNotIn(List<Integer> values) {
            addCriterion("quote_app_ava_status not in", values, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_ava_status between", value1, value2, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppAvaStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_ava_status not between", value1, value2, "quoteAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextIsNull() {
            addCriterion("quote_appr_next is null");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextIsNotNull() {
            addCriterion("quote_appr_next is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextEqualTo(Integer value) {
            addCriterion("quote_appr_next =", value, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextNotEqualTo(Integer value) {
            addCriterion("quote_appr_next <>", value, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextGreaterThan(Integer value) {
            addCriterion("quote_appr_next >", value, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_appr_next >=", value, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextLessThan(Integer value) {
            addCriterion("quote_appr_next <", value, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextLessThanOrEqualTo(Integer value) {
            addCriterion("quote_appr_next <=", value, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextIn(List<Integer> values) {
            addCriterion("quote_appr_next in", values, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextNotIn(List<Integer> values) {
            addCriterion("quote_appr_next not in", values, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextBetween(Integer value1, Integer value2) {
            addCriterion("quote_appr_next between", value1, value2, "quoteApprNext");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNextNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_appr_next not between", value1, value2, "quoteApprNext");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}